<template>
  <div>
    <checkInOut :info="info" mode="IN" />
  </div>
</template>

<script>
import {
  api_GET_ClubMessageId
} from '@/extend/api/hallswaggerApi/app.js';

import checkInOut from '../components/checkInOut.vue';
export default {
  components: {
    checkInOut
  },
  data () {
    return {
      info: {},
      msgId: ''
    };
  },
  created () {
    const { id } = this.$route.params;
    this.msgId = id;
    this.getInfo(this.msgId, {
      IncludeMessageTemplateType: true
    });
  },
  methods: {
    getInfo (id, qo) {
      api_GET_ClubMessageId(id, qo)
        .then(
          res => {
            res.h5ParameterJson = JSON.parse(res.h5ParameterJson);
            this.info = res;
          }
        );
    }
  }
};
</script>
